package com.neusoft.carsale.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.neusoft.carsale.bean.Pager;
import com.neusoft.carsale.bean.PssException;
import com.neusoft.carsale.mapper.SuperMapper;
import com.neusoft.carsale.service.SuperService;

/**
 * 
 * @author hp
 *
 * @param <T>
 */
public class SuperServiceImpl<T> implements SuperService<T> {
	@Autowired
	private SuperMapper<T> superMapper;

	@Override
	public List<T> findList(Pager<T> pager) throws PssException {

		return superMapper.findList(pager);
	}

	@Override
	public int findTotal(Pager<T> pager) throws PssException {

		return superMapper.findTotal(pager);
	}

	@Override
	public List<T> findAll() throws PssException {

		return superMapper.findAll();
	}

	@Override
	public boolean add(T param) throws PssException {

		return superMapper.add(param);
	}

	@Override
	public boolean edit(T param) throws PssException {

		return superMapper.edit(param);
	}

	@Override
	public boolean delete(T param) throws PssException {

		return superMapper.delete(param);
	}

}
